import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class MYOperationItem extends StatelessWidget {
  final Widget _icon;
  final String _title;

  
  MYOperationItem(this._icon, this._title);
  
  @override
  Widget build(BuildContext context) {
    return Container(
      // 可以固定宽度 防止随着字体改变而改变
      width: 80,
      // 加大点击区域
      padding: EdgeInsets.symmetric(vertical: 12),
//      color: Colors.red,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          _icon,
          SizedBox(width: 3,),
          Text(_title)
        ],
      ),
    );
  }
}
